package com.sdx.payment.service;

import com.sdx.console.transaction.entity.FinTransaction;
import com.sdx.console.transaction.entity.FinTransactionRefund;
import com.sdx.payment.RefundResult;

/**
 * @ClassName IPaymentService
 * @Description: 支付（退款）接口
 * @author: tanbaocai
 * @date: 2018/9/26 11:45
 */
public interface IPaymentService {

	/**
	 * 退款，根据支付类型，调用不同平台的退款接口，结果更新到refund
	 * @param refundId 退款单id
	 * @param refundMoney 退款金额
	 * @param transaction 原交易单
	 * @return
	 */
	RefundResult refund(String refundId,int refundMoney, FinTransaction transaction);
}
